<?php
/**
 * Help.php
* 跨境电商商城系统
 * =============================================
 * Copy right 2016-2026 大连熠泽科技网络有限公司
 * ---------------------------------------------
 * 官方网址: http://www.yizehuitong.com
 * =============================================
 * @author : yizehuitong
 * @date : 2019.10
 * @version : v2.0
 */

namespace app\wap\controller;

/**
 * 帮助中心
 */
class Help extends BaseWap
{
	
	/**
	 * 首页
	 */
	public function index()
	{
		$id = request()->get('id', '');
		$class_id = request()->get("class_id", "");
		
		$info = api('System.Shop.helpList', [ 'id' => $id, 'class_id' => $class_id ]);
		$info = $info['data'];
		$platform_help_class = $info['platform_help_class'];
		$platform_help_document = $info['platform_help_document'];
		$help_document_info = $info['help_document_info'];
		
		$this->assign('help_document_info', $help_document_info);
		$this->assign('platform_help_class', $platform_help_class);
		$this->assign('platform_help_document', $platform_help_document);
		
		$this->assign('id', $id);
		$this->assign('class_id', $class_id);
		$this->assign('title', $help_document_info['title']);
		$this->assign("title_before", $help_document_info['title']);
		return $this->view($this->style . 'help/index');
	}
}